package com.gateway.sync.data.api;


import com.gateway.common.dto.sync.ApiSyncData;

/**
 * @program: ahcloud-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2023/5/29 19:22
 **/
public interface ApiDataSubscriber {

    /**
     * On subscribe.
     * @param apiSyncData
     */
    void onSubscribe(ApiSyncData apiSyncData);

    /**
     * Un subscribe.
     * @param apiSyncData
     */
    void unSubscribe(ApiSyncData apiSyncData);

    /**
     * Refresh
     */
    default void refresh() {

    }
}
